package com.wu.service.impl;

import com.wu.pojo.vo.MaterialsVo;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.wu.pojo.Materials;
import com.wu.mappers.MaterialsMapper;
import com.wu.service.MaterialsService;

import java.util.List;

/**
@author sun
@date 2022/3/27 - 23:06
*/
@Service
public class MaterialsServiceImpl implements MaterialsService{

    @Resource
    private MaterialsMapper materialsMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return materialsMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(Materials record) {
        return materialsMapper.insert(record);
    }

    @Override
    public int insertSelective(Materials record) {
        return materialsMapper.insertSelective(record);
    }

    @Override
    public Materials selectByPrimaryKey(Integer id) {
        return materialsMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(Materials record) {
        return materialsMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Materials record) {
        return materialsMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<MaterialsVo> findMaterials(Materials materials) {
        return materialsMapper.findMaterials(materials);
    }

}
